package com.zhiliao.decorator.demo2;

import com.zhiliao.decorator.beans.MessageContent;
import com.zhiliao.decorator.beans.OrderContent;

public class OrderPipeMessage extends AbstractMessageDecorator<OrderContent>{
    public OrderPipeMessage(Message message) {
        super(message);
    }

    @Override
    public void getMessage(String content) {
        super.getMessage(content);
    }

    @Override
    protected MessageContent deserializeMessage(String content) {
        MessageContent<OrderContent> messageContent = new MessageContent<>();
        return messageContent;
    }

    @Override
    protected boolean preCheckMessage(MessageContent<OrderContent> messageContent) {
        OrderContent content = messageContent.getContent();
        return true;
    }

    @Override
    protected void service(MessageContent<OrderContent> messageContent) {

    }

}
